﻿#region 命名空间

using System;
using System.ComponentModel;
using System.Configuration;
using System.Collections.Generic;
using System.Runtime.Serialization;
using System.Text;
using WinnerCMS.Common;

#endregion

namespace WinnerCMS.BLL
{
    public partial class CMSConfig
    {
        [Serializable, DataContract]
        public class EMailConfig
        {
            public EMailConfig()
            {
                FromName = string.Empty;
                From = string.Empty;
                PassWord = string.Empty;
                UserName = string.Empty;
                Domain = string.Empty;
            }

            /// <summary>
            /// 是否发送邮件
            /// </summary>
            [DisplayName("是否发送邮件"), DataMember]
            public bool IsSend { get; set; }


            /// <summary>
            /// SMTP Server地址
            /// </summary>
            [DisplayName("SMTP Server地址"), DataMember]
            public string Domain { get; set; }

            /// <summary>
            /// 邮件登录用户名
            /// </summary>
            [DisplayName("邮件登录用户名"), DataMember]
            public string UserName { get; set; }

            /// <summary>
            /// 邮件登录密码
            /// </summary>
            [DisplayName("邮件登录密码"), DataMember]
            public string PassWord { get; set; }

            /// <summary>
            /// 邮件来自
            /// </summary>
            [DisplayName("邮件来自"), DataMember]
            public string From { get; set; }

            /// <summary>
            /// 发送邮件人的姓名
            /// </summary>
            [DisplayName("发送邮件人的姓名"), DataMember]
            public string FromName { get; set; }
        }
    }
}